package ch.hearc.coursJava.kitBase.tableau.equationOrdre2;

public class UseEquationOrdre2ParametreSysteme
	{
	/*------------------------------------------------------------------*\
	|*							Methodes Public							*|
	\*------------------------------------------------------------------*/

	public static void main(String[] args)
		{
		main();
		}

	/**
	 * Exemple :
	 * -Da = 2
	 * -Db = -4
	 * -Dc = 1
	 */
	public static void main()
		{
		double[] tabCoefficients = new double[3];

		tabCoefficients[0] = Double.parseDouble(System.getProperty("a"));
		tabCoefficients[1] = Double.parseDouble(System.getProperty("b"));
		tabCoefficients[2] = Double.parseDouble(System.getProperty("c"));

		System.out.println("a = "+tabCoefficients[0]);
		System.out.println("b = "+tabCoefficients[1]);
		System.out.println("c = "+tabCoefficients[2]);

		double[] tabResultats = EquationOrdre2.solve(tabCoefficients);
		EquationOrdre2.afficher(tabResultats);
		}
	}